package com.sise.stuteaintersys.mapper;

import com.sise.stuteaintersys.bean.entity.ProfessionType;
import com.sise.stuteaintersys.bean.entity.ProfessionTypeExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProfessionTypeMapper {
    int countByExample(ProfessionTypeExample example);

    int deleteByExample(ProfessionTypeExample example);

    int deleteByPrimaryKey(Byte id);

    int insert(ProfessionType record);

    int insertSelective(ProfessionType record);

    List<ProfessionType> selectByExample(ProfessionTypeExample example);

    ProfessionType selectByPrimaryKey(Byte id);
    /**
    *  查询出所有的IT分向
     *
    *@return IT分向列表
    *@date 2018/12/29
    *@time 14:10
    */
    String[] selectName();

    @Select("select * from profession_type")
    List<ProfessionType> select();

    int updateByExampleSelective(@Param("record") ProfessionType record, @Param("example") ProfessionTypeExample example);

    int updateByExample(@Param("record") ProfessionType record, @Param("example") ProfessionTypeExample example);

    int updateByPrimaryKeySelective(ProfessionType record);

    int updateByPrimaryKey(ProfessionType record);
}